package apiroutes

import (
	"dataaysn/internal/service"

	"github.com/gin-gonic/gin"
)

func RegisterMappingRuleRoutes(r *gin.Engine, mappingRuleService *service.MappingRuleService) {
	ruleGroup := r.Group("/api/mapping-rules")
	{
		ruleGroup.POST("", mappingRuleService.CreateRule)
		ruleGroup.GET("", mappingRuleService.ListRules)
		ruleGroup.GET("/:id", mappingRuleService.GetRule)
		ruleGroup.PUT("/:id", mappingRuleService.UpdateRule)
		ruleGroup.DELETE("/:id", mappingRuleService.DeleteRule)
	}
}
